package kiwi.assist.dev.guieditor.model {
	/**
	 * 枚举数据的类型
	 * @author zhangming.luo
	 */
	public class EnumConfig {
		public static const FALSE : EnumConfig = new EnumConfig("false", false);
		public static const TRUE : EnumConfig = new EnumConfig("true", true);
		public var name : String;
		public var value : *;

		public function EnumConfig(name : String, value : *) {
			this.name = name;
			this.value = value;
		}

		public function toString() : String {
			return name;
		}

		private static const enums : * = {};

		public static function addEnum(name : String, array : Array) : void {
			enums[name] = array;
		}

		public static function byName(name : String) : Array {
			return enums[name];
		}
	}
}
